# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bing-lfi-rfi
pkgver=0.1
pkgrel=5
groups=('blackarch' 'blackarch-webapp' 'blackarch-scanner' 'blackarch-fuzzer')
pkgdesc='Python script for searching Bing for sites that may have local and remote file inclusion vulnerabilities.'
arch=('any')
url='http://packetstormsecurity.com/files/121590/Bing-LFI-RFI-Scanner.html'
license=('custom:unknown')
depends=('python2')
source=("$pkgname::https://dl.packetstormsecurity.net/UNIX/scanners/binglfirfi.txt")
sha512sums=('6d784483c5143bf6d599d7572bf064e4c137c06e93200aac99d930ffb53ddba42efd7f9fcb40a64bbc21c8c2634b6be1f2b9e0772c254fe1ebd27cb1e3ffa92b')

prepare() {
  sed -i '1i#!/usr/bin/python2' $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

